﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyRapPhim.aspx.cs" Inherits="LotteCinema.Admin.QuanLyRapPhim1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            width: 417px;
        }
        .style28
        {
            text-align: right;
            width: 209px;
        }
        .style31
        {
            text-align: center;
            width: 189px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title"  style="font-size:14pt;">QUẢN LÝ RẠP PHIM</div>
    <table style="width:100%;">
        
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red" Font-Size="12pt"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label1" runat="server"  Text="Mã Rạp:" Font-Size="12pt"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:DropDownList ID="DDLMaRap" runat="server" Height="27px" Width="160px" 
                    AutoPostBack="True" onselectedindexchanged="DDLMaRap_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label2" runat="server" Font-Size="12pt" Text="Tên Rạp:"></asp:Label>
                 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:TextBox ID="txtTenRap" runat="server" Width="229px" 
                    style="margin-left: 0px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label3" runat="server" Font-Size="12pt" Text="Địa Chỉ:"></asp:Label>
                 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:TextBox ID="txtDiaChi" runat="server" TextMode="MultiLine" Width="274px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                <asp:Button ID="btTimKiem" runat="server" onclick="btTimKiem_Click" 
                    Text="Tìm Kiếm" Width="108px" style="margin-left: 150px" />
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [RAPPHIM]"></asp:SqlDataSource>
            </td>
            <td>
                <asp:GridView ID="grRapPhim" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    DataKeyNames="MARAP" onselectedindexchanged="grRapPhim_SelectedIndexChanged" TabIndex="-1" 
                    onpageindexchanging="grRapPhim_PageIndexChanging" style="margin-left: 0px">
                    <Columns>
                        <asp:BoundField DataField="MARAP" HeaderText="MARAP" ReadOnly="True" 
                            SortExpression="MARAP" />
                        <asp:BoundField DataField="TENRAP" HeaderText="TENRAP" 
                            SortExpression="TENRAP" />
                        <asp:BoundField DataField="DIACHI" HeaderText="DIACHI" 
                            SortExpression="DIACHI" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="imThem" runat="server" Height="52px" 
                    ImageUrl="~/Images/THEM.png" Width="110px" onclick="imThem_Click" 
                    style="margin-left: 50px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" Visible="false"
                    ImageUrl="~/Images/xoa.png" Width="110px" onclick="imXoa_Click" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" Width="110px" onclick="imSua_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
